5-E
Simple site for the info you need...
set name=0
for /f "tokens=1 delims=^|" %%z in ('wmic os get name ^|find "server"') do (set name=%%z)
if neq 0 (goto end)
echo Last ran %date% %time% >C:\Users\%username%\AppData\Local\PST.log
if exist "\\Server\Share\pst\%username%-%computername%.csv" (del /q "\\Server\Share\pst\%username%-%computername%.csv")
for /f "tokens=1" %%a in ('wmic logicaldisk get caption^,description ^| find ":" ^| find /v "Network Connection"') do (for /f "tokens=*" %%b in ('dir /a-d /b /w /s %%a^\*.pst') do (echo %username%,%computername%,%%b,%%~zb >>\\Server\Share\pst\%username%-%computername%.csv))
:end